package com.yusong.open.sdk.domains;

/**
 * Created by yusong on 2018/1/19.
 * 系统预定义异常
 */
public class OpenSDKExceptions {

    //系统异常
    public static final OpenSDKException SYSTEM_EXCEPTION = new OpenSDKException(500,"System Error");

    //参数异常
    public static final OpenSDKException PARA_EXCEPTION = new OpenSDKException(501,"Parameter Error");

    //签名错误
    public static final OpenSDKException SIGN_EXCEPTION = new OpenSDKException(405,"Sign Invalid");

    //数据不存在错误
    public static final OpenSDKException NOT_FOUND_EXCEPTION = new OpenSDKException(404,"Record Not Found");

    //请求重复
    public static final OpenSDKException REPEAT_EXCEPTION = new OpenSDKException(100,"Repeat Request");

    //远程调用错误
    public static final OpenSDKException RPC_EXCEPTION = new OpenSDKException(502,"RPC Error");
}
